package net.melon.page.pojo;

import net.esj.basic.pojo.AbstractPojo;

public class ModuleLinkType extends AbstractPojo<Integer>{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -5080782979405415942L;

	public static enum ModuleLinkTypeType{
		//图片
		ARTICLE(1),
		//图片
		PICTURE(2),
		//产品
		PRODUCT(3);
		
		private int type;

		private ModuleLinkTypeType(int type) {
			this.type = type;
		}

		public int getType() {
			return type;
		}
		
		public static ModuleLinkTypeType valueOf(int type){
			for(ModuleLinkTypeType ms : values()){
				if(ms.getType()== type){
					return ms;
				}
			}
			return null;
		}
		
	}
	
	private Integer id;
	
	private int type;
	
	private String description;
	
	private Module module;
	
	private int site;//对应于页面上的模块位置点

	public ModuleLinkType() {
	}
	
	public ModuleLinkType(int id) {
		this.id = id;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Module getModule() {
		return module;
	}

	public void setModule(Module module) {
		this.module = module;
	}

	public int getSite() {
		return site;
	}

	public void setSite(int site) {
		this.site = site;
	}
	
}	
